package com.dream.springmvc.filter.operators;

import lombok.Getter;

/**
 * @author panwen
 */
@Getter
public enum DoubleOperator {
    eq(Operators::eqOp),
    ne(Operators::neOp),
    gt(Operators::gtOp),
    gte(Operators::gteOp),
    lt(Operators::ltOp),
    lte(Operators::lteOp),
    empty(Operators::emptyOp),
    notEmpty(Operators::notEmptyOp);

    private final OpFunc<Double> opf;

    DoubleOperator(OpFunc<Double> opf) {
        this.opf = opf;
    }
}
